package com.owen.oauth2.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/bbb")
public class BbbController {

//    @PreAuthorize(value="isAuthenticated()")
    @Secured("ROLE_bbb")
    @RequestMapping("/bbb")
    public String bbb(){
        return "bbb";
    }

}
